package com.fz.service;

import com.fz.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 存储系统权限信息 服务类
 * </p>
 *
 * @author hyr
 * @since 2025-06-18
 */
public interface PermissionService extends IService<Permission> {
    List<Permission> getList();

    Boolean add(String name, String description, String path,Integer level,Integer parentId, Integer type);

    Boolean update(Long id, String name, String description, String path,Integer level,Integer parentId, Integer type);

    Boolean del(Long id);

    List<Permission> getByUserId(Long userId);
}
